-- GENERATED SPELL FOR [Dreadbone Invader] --


function spell0_27286(pUnit, Event) --@Soulthirst,n/a--
pUnit:FullCastSpellOnTarget(51290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27286', 0, 1)
end

function Sorts_27286(pUnit, Event)
local choix_sorts_27286 = math.random(0, 0)
if choix_sorts_27286 == 0 then
pUnit:RegisterEvent('spell0_27286', 1, 1)
end
end

function mob27286_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27286', math.random(1500, 3000), 1)
end

function mob27286_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27286_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27286_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27286, 1, 'mob27286_Action')
RegisterUnitEvent(27286, 2, 'mob27286_Leave')
RegisterUnitEvent(27286, 3, 'mob27286_Kill')
RegisterUnitEvent(27286, 4, 'mob27286_Die')
